/**
 * <B>仉乾乐</B><BR>
 * <B>系统名称：spring cloud 搭建学习</B><BR>
 * <B>模块名称：api-gateway</B><BR>
 * <B>中文类名：</B><BR>
 * <B>概要说明：</B><BR>
 * @author zhangql
 * @since 2018年12月28日
 */
package com.lele.org;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.lele.org.filter.AccessFilter;

/**
 * @EnableZuulProxy开启Zuul的API网关服务功能
 * 
 */
@EnableZuulProxy
@SpringCloudApplication
public class GateWayApp {

	public static void main(String[] args) {
		SpringApplication.run(GateWayApp.class, args);
	}
	
	 //追加bean的是实现
    @Bean
    public AccessFilter accessFilter() {
        return new AccessFilter();
    }
}
